From: Carlos Garnacho Date: Wed, 25 Jun 2014 15:50:02 +0000 (+0200) Subject: messageTray: Add bottom drag gesture to popup the message tray X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2215 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=285a7467d04a932433a20c6f87e9eef773d9c845;p=gnome-shell.git messageTray: Add bottom drag gesture to popup the message tray https://bugzilla.gnome.org/show_bug.cgi?id=735625 --- diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index beabb8a71..62c77e4b9 100644 --- a/js/ui/messageTray.js +++ b/js/ui/messageTray.js @@ -15,6 +15,7 @@ const Signals = imports.signals; const St = imports.gi.St; const Tp = imports.gi.TelepathyGLib; +const EdgeDragAction = imports.ui.edgeDragAction; const BoxPointer = imports.ui.boxpointer; const CtrlAltTab = imports.ui.ctrlAltTab; const GnomeSession = imports.misc.gnomeSession; @@ -1933,6 +1934,10 @@ const MessageTray = new Lang.Class({ this._messageTrayMenuButton = new MessageTrayMenuButton(this); this.actor.add_actor(this._messageTrayMenuButton.actor); + + let gesture = new EdgeDragAction.EdgeDragAction(St.Side.BOTTOM); + gesture.connect('activated', Lang.bind(this, this.toggle)); + global.stage.add_action(gesture); }, close: function() {